<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page
	import="com.AddressListModule.bean.*,com.AddressListModule.dao.*"%>
<%

	StringBuffer sb = (StringBuffer)session.getAttribute("sb");
	String dingwei = request.getParameter("dingwei");
%>

<jsp:include page="../head.jsp"></jsp:include>
<style>
 .treeview LI.on {
	background:#E6F5FD; 
}
</style>
 <script type="text/javascript">
                           $(document).ready(function(){
								$('.treeview').treeview();
								//$('.treeview li a').after('<span title="添加子节点" class="addnode"><a href="javascript:alert(1);">添加子节点</a></span><span title="编辑该节点" class="editnode"><a href="javascript:alert(2);">编辑该节点</a></span><span title="删除该节点" class="delnode"><a href="javascript:alert(3);">删除该节点</a></span>');
								$('.treeview li span').hide();
								$('.treeview li').hover(function(){
									$(this).children('span').show();
								},function(){
									$(this).children('span').hide();
								});
							});

								</script> 
  <body>
  <div id="pager">
  <jsp:include page="../top.jsp"><jsp:param name="topCurrent" value="4" /></jsp:include>
  <jsp:include page="Left.jsp"> <jsp:param name="um" value="11" /></jsp:include> 
	<section id="container">
		 <div id="crumbs">
        	客户管理 &raquo; 通讯录管理
        </div>
	<div id="main">
		<div class="tabs">
			<ul class="tabs-nav clearfix">
				<li>
					通讯录管理
				</li>
			</ul>
			<div class="tabs-panel">
				<table width="100%" class="datalist">
					<thead>
						<tr>
							<td>
								通讯录
							</td>
						</tr>
					</thead>
					<tr>
						<td>

							<ul class="treeview" id="headerIndex">
								<%=sb %>
							</ul>
							<script>
								
				var headerIndex=document.getElementById("headerIndex");
			var artlis = headerIndex.getElementsByTagName("li");
			try{
					for(var i =0;i<artlis.length;i++){
						if(artlis[i].className!="0"&&artlis[i].className!=""&&artlis[i].className=="<%=dingwei%>"){
							artlis[i].className = artlis[i].className+" on";
							}
					}
					
				
			}catch(e){}
		</script>

						</td>
					</tr>
				</table>
			</div>
		</div>
			
	</div>
</section>
<jsp:include page="../foot.jsp"></jsp:include>
</div>
</body>
</html>
